NETLINK: a link cable to your partner, through the internet
==========================================================

What's here
  NetLinkCable.gba   the far end of the link cable (a tiny program, not a game)
  netlink.lua        connects it to your partner's, through remote-arc.site.
                     Nothing to edit in it.

You need
  mGBA 0.10 or newer (free): https://mgba.io/downloads.html
  Your own Pokemon game (FireRed / LeafGreen tested) and its save.

1. BOTH: in mGBA, File > Load ROM... and open NetLinkCable.gba.
   Then Tools > Scripting..., and in that window File > Load script...
   and choose netlink.lua. (Next time: File > Load recent script.)

2. BOTH: in the NetLink Cable window, File > New multiplayer window, and
   open your Pokemon game in the new window. It plays on your usual save:
   mGBA gives it its own file (YourGame.sa2), and NetLink fills that from
   YourGame.sav and keeps the two the same while you play. Before it first
   changes YourGame.sav it keeps the old one as YourGame.sav.netlink-backup.
   (Game shows NEW GAME? You opened it before loading netlink.lua: press
   Ctrl+R in the game window when NetLink asks.)

3. Connect.
   One of you hosts: your NetLink Cable screen shows a 4-digit code; tell
   it to your partner. The other joins: click your NetLink Cable window,
   press Z (mGBA's B) to join, set the digits with the arrow keys and
   press X (mGBA's A).

   ONE KEY FOR THE HOST: once you're connected, the host's NetLink screen
   asks for Ctrl+0 (Cmd+0 on a Mac) in the NetLink Cable window. That
   reopens NetLink Cable so the host's game becomes the link's player 1
   (one of the two games has to be). The game keeps running.

4. In both games go to a Pokemon Center upstairs (2F), talk to the
   attendant on the RIGHT (Direct Corner), and both choose the same:
   Colosseum (then the same battle mode) or Trade Center. The game saves
   and waits for the other player.
   Then the HOST gets three prompts ("When all players are ready...",
   "2P LINK", "Start link with 2 players"): press A at each, and HOLD A
   on the last one until it moves on (a quick tap can be missed).
   Colosseum: walk up to your spot, the host's on the LEFT, the joiner's
   on the RIGHT. The battle starts when both stand on them.
   Trade Center: sit at the table.

5. To stop, walk out of the room (the link ends), or just close mGBA.

Turn off "Pause when inactive" in mGBA's settings if you click between
windows: a paused window pauses the cable too.
